import Request from "../../core";
export const getWxConfig = (data) => {
  return Request.get("/wx/open/user/config", data, {
    isLoading: true, // 是否展示加载弹窗
  });
};
export const genSubscribeQrcode = (data) => {
  //关注跳转页面生成二维码接口
  return Request.get("/business_admin/user/wx/genSubscribeQrcode", data, {
    isLoading: true, // 是否展示加载弹窗
  });
};
export const getQrcode = (data) => {
  //关注跳转页面生成二维码接口
  return Request.post("/business_admin/user/wx/pub/bind", data, {
    isLoading: true, // 是否展示加载弹窗
  });
};

export const isSubscribe = (data) => {
  //关注跳转页面生成二维码接口
  return Request.post("/business_admin/user/wx/isSubscribe", data, {
    isLoading: false, // 是否展示加载弹窗
  });
};
export const getWxAppPageQrcode = (data) => {
  //用户小程序二维码
  return Request.get("/wx/biz/wxapp/getWxappPageQrcode", data, {
    isLoading: false, // 是否展示加载弹窗
  });
};
